package cn.edu.heuet.bnve.remind;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;

import cn.edu.heuet.bnve.model.Schedule;

/**
 * Created by abc-pc on 2020/4/21.
 *接受广播，收到广播后启动闹钟服务
 */
public class AlarmServiceBroadcastReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        Bundle bundle = intent.getExtras();
        Intent serviceIntent = new Intent(context, AlarmService.class);
        Log.i("wqs","通知设置了2");
        context.startService(serviceIntent);

    }
}
